package com.myfum.wingplayer.components.decorators
{
	import com.myfum.wingplayer.components.containers.AbstractContainer;
	
	public class AbstractDecorator extends AbstractContainer
	{
		public function AbstractDecorator(container:AbstractContainer){
			if(container is AbstractDecorator){
				this.container = AbstractDecorator(container).container;
			}else{
				this.container = container;
			}
//			this.container = container;
		}
		internal var container:AbstractContainer;
		
		override public function getReady():void{
			holder.visible = false;
		}
		override public function get isReady():Boolean{
			return container.isReady;
		}
		override public function play():void{}
		override public function stop():void{}
		override public function dispose():void{
			container.dispose();
		}
		override public function set data(value:Object):void{
			container.data = value;
		}
		override public function get data():Object{
			return container.data;
		}
	}
}